xen/arm: gic: acpi: Guard helpers to build the MADT with CONFIG_ACPI
authorJulien Grall <jgrall@amazon.com>
Thu, 19 Nov 2020 17:08:27 +0000 (17:08 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 20 Nov 2020 00:23:08 +0000 (16:23 -0800)
commit1965c171a4a791bbed1cf84c097177117bb02dac
tree84b410d9c43f39dac30799682411d5eeb4d96566
parent415f904254b7343a90db895134980cbb7f7f0479
xen/arm: gic: acpi: Guard helpers to build the MADT with CONFIG_ACPI

gic_make_hwdom_madt() and gic_get_hwdom_madt_size() are ACPI specific.

While they build fine today, this will change in a follow-up patch.
Rather than trying to fix the build on ACPI, it is best to avoid
compiling the helpers and the associated callbacks when CONFIG_ACPI=n.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/arch/arm/gic.c
xen/include/asm-arm/gic.h